package com.jxk.test.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName : User  //类名
 * @Description :   //描述
 * @Author : jxk  //作者
 * @Date: 2020-09-21 11:13  //时间
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class User implements Serializable {
    @Size(min = 8, max = 10)
    private  String  username;
    private String password;
    private List<Role> roleList;

}
